package com.wenx.v3system.modular.platform.domain.dto;

import com.wenx.base.domain.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;

/**
 * 平台角色菜单关联DTO
 * 简化权限模型 - 基于菜单的权限控制
 * 
 * @author wenx
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "平台角色菜单关联信息")
public class PlatformRoleMenuDto extends BaseDto {

    @NotBlank(message = "角色编码不能为空")
    @Schema(description = "角色编码", example = "super_admin")
    private String roleCode;

    @NotBlank(message = "菜单编码不能为空")
    @Schema(description = "菜单编码", example = "platform_dashboard")
    private String menuCode;

    // 扩展字段
    @Schema(description = "角色名称", example = "超级管理员")
    private String roleName;

    @Schema(description = "菜单名称", example = "平台概览")
    private String menuName;

    @Schema(description = "菜单路径", example = "/platform/dashboard")
    private String menuPath;

    @Schema(description = "菜单图标", example = "dashboard")
    private String menuIcon;

    @Schema(description = "排序", example = "1")
    private Integer sort;

    @Schema(description = "状态：1-启用，0-禁用", example = "1")
    private Integer status;
} 